<?php if(stripos($imgflash,".swf")) { ?>
<center>
      <object
        classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,42,0"
        id="design"
        width="<?php echo $width ?>" height="<?php echo $height ?>"
      >
        <param name="movie" value="<?php echo $imgflash ?>">
        <param name="bgcolor" value="#FFFFFF">
        <param name="quality" value="high">
        <param name="seamlesstabbing" value="false">
        <param name="allowscriptaccess" value="samedomain">
        <embed
          type="application/x-shockwave-flash"
          pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
          name="design"
          width="<?php echo $width ?>" height="<?php echo $height ?>"
          src="<?php echo $imgflash ?>"
          bgcolor="#FFFFFF"
          quality="high"
          seamlesstabbing="false"
          allowscriptaccess="samedomain"
        >
          <noembed>
          </noembed>
        </embed>
      </object>
    </center>
<?php  } else {   ?>
	<img src = "<?php echo $imgflash ?>" alt="" width="<?php echo $width ?>" height="<?php echo $height ?>"/>
<?php  }    ?>